<html>
<head>
<style>
.pg_digit_link {
    border:1px solid #CDCDCD;
    padding:5px;
	margin: 0 2;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}  
.prevnext{
 border:1px solid #CDCDCD;
    padding:5px;
	margin: 0 2;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
.firstlast{
	border:1px solid #ccc;
    padding:5px;
	margin: 0 2;
}
#full{
	background: none;
	margin: 5px; 
	padding: 10px;
}
.marginpage{
margin:0 0 0 290;
}
</style>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery-ui.js"></script>
<script type="text/javascript">
$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});
</script>
</head>
<body>
<div id="wrapper">
<div id="wrapper3">
	<div id="onecolumn">
	
	<div id="kotakphoto8"><div class="judul">All Favorite Places</div><span style="float:left;width:20;height:20;"></span><?php echo ' <div class="judul">'.anchor('event/see_all_event',' All Events').'</div>'?></div>
	
	<div id="allplace">
	<ol style="list-style-type:none" id="update" class="timeline">
	<?php if($place['tgl']): ?>
	<?php asort($place['tgl']);
	foreach($place['tgl'] as $k=>$v):?>
	<li>
	<div id="newpost3">
	<?php echo '<div class="photo" title="'.$place['name'][$k].'">';
	 	echo anchor('place/view/'.$place['id_place'][$k],img(array('src'=>'img/thumb_place/'.$place['foto'][$k],'width'=>50,'height'=>50)));
			echo '</div>';
				if ($place['id_user'][$k] == $this->session->userdata('id_user')){
					echo '<div class="kotakstatus6">';
					echo anchor('place/view/'.$place['id_place'][$k],$place['name'][$k]);
					echo '</div>';
					echo '<div class="icon">'.img(array('src'=>'img/home.gif','width'=>15,'height'=>15)).'</div>';
					echo '<div class="kotakstatus5">';
					if ($place['idp'][$k] == null){
						echo '<div class="likefav">0</div> ';
					}else{
						echo '<div class="likefav">'.$place['total'][$k].'</div> ';
					}
					echo '<div class="thumbup""><img src="http://localhost/ta/img/thumbup.png"/></div>';
					echo '</div>';
					echo '<div class="username4">by <b>'.anchor('profile',$place['username'][$k]).'</b></div>';
					echo '<div class="clear"></div>';
					
				}else{
					echo '<div class="kotakstatus6">';
					echo anchor('place/view/'.$place['id_place'][$k],$place['name'][$k]);
					echo '</div>';
					echo '<div class="icon">'.img(array('src'=>'img/home.gif','width'=>15,'height'=>15)).'</div>';
					echo '<div class="kotakstatus5">';
					if ($place['idp'][$k] == null){
						echo '<div class="likefav">0</div> ';
					}else{
						echo '<div class="likefav">'.$place['total'][$k].'</div> ';
					}
					echo '<div class="thumbup""><img src="http://localhost/ta/img/thumbup.png"/></div>';
					echo '</div>';
					echo '<div class="username4">by <b>'.anchor('people/view/'.$place['id_user'][$k],$place['username'][$k]).'</b></div>';
					echo '<div class="clear"></div>';
				}					
		?>	
		
</div>
</li>
<?php endforeach;?>
<?php endif ?>
</ol>
</div>
<div class="clear"></div>
<div class="marginpage"><?php echo $this->pagination->create_links()?></div>
	</div>
</div>
</div>
</body>
</html>